class getsum
{
public:
    static void Init()
    {
        sum = 0;
        i = 1;
    }
    getsum()
    {
        sum += i;
        i++;
    }
    static int getn()
    {
        return sum;
    }
private:
    static int sum;
    static int i;
};

int getsum::sum = 0;
int getsum::i = 1;


class Solution {
public:
    int Sum_Solution(int n) {
        getsum::Init();
        getsum x[n];
        return getsum::getn();
    }
};